package com.bhui.mytravel.Test;


import com.bhui.mytravel.service.TourService;

import java.util.List;
import java.util.Map;

public class demo1 {
    public static void main(String[] args) throws Exception {
        TourService tourService = new TourService();
        List<Map<String, Object>> routeOptions = tourService.getRouteOptions("北京", "南京");

        for (Map<String, Object> route : routeOptions) {
            System.out.println("距离: " + route.get("distance") + " 米");
            System.out.println("时间: " + route.get("duration") + " 秒");
            System.out.println("收费: " + route.get("tolls") + " 元");
            System.out.println("经过的城市: " + route.get("citiesOrder"));
            System.out.println("--------------------");
        }
}
}
